From ec9a39977a4341feabed2ad6477789217ee39438 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Tue, 23 Jun 2015 19:11:15 +0200 Subject: [PATCH] Adwaita: scale marks visible on the dark variant --- gtk/theme/Adwaita/_common.scss | 2 ++ gtk/theme/Adwaita/gtk-contained-dark.css | 12 ++++++++---- gtk/theme/Adwaita/gtk-contained.css | 12 ++++++++---- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index e3571713cd..a31f712047 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -2326,6 +2326,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { -GtkRange-slider-width: 24; -GtkRange-trough-border: 2; + color: transparentize($fg_color, 0.7); // marks color + @extend %#{$we}_#{$dn}; @each $s,$as in ('',''), diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index 84df56b4cb..4ad0c9160f 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -3099,7 +3099,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.scale-has-marks-below { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(238, 238, 236, 0.3); } .scale.scale-has-marks-below.slider { border-style: none; border-radius: 0; @@ -3152,7 +3153,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.scale-has-marks-above { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(238, 238, 236, 0.3); } .scale.scale-has-marks-above.slider { border-style: none; border-radius: 0; @@ -3205,7 +3207,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.vertical.scale-has-marks-below { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(238, 238, 236, 0.3); } .scale.vertical.scale-has-marks-below.slider { border-style: none; border-radius: 0; @@ -3258,7 +3261,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.vertical.scale-has-marks-above { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(238, 238, 236, 0.3); } .scale.vertical.scale-has-marks-above.slider { border-style: none; border-radius: 0; diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 1afb73067a..e3b8e2ed06 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -3261,7 +3261,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.scale-has-marks-below { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(46, 52, 54, 0.3); } .scale.scale-has-marks-below.slider { border-style: none; border-radius: 0; @@ -3314,7 +3315,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.scale-has-marks-above { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(46, 52, 54, 0.3); } .scale.scale-has-marks-above.slider { border-style: none; border-radius: 0; @@ -3367,7 +3369,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.vertical.scale-has-marks-below { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(46, 52, 54, 0.3); } .scale.vertical.scale-has-marks-below.slider { border-style: none; border-radius: 0; @@ -3420,7 +3423,8 @@ GtkCheckButton.text-button, GtkRadioButton.text-button { .scale.vertical.scale-has-marks-above { -GtkScale-slider-length: 20; -GtkRange-slider-width: 24; - -GtkRange-trough-border: 2; } + -GtkRange-trough-border: 2; + color: rgba(46, 52, 54, 0.3); } .scale.vertical.scale-has-marks-above.slider { border-style: none; border-radius: 0; -- 2.30.2